import { createBrowserRouter } from "react-router-dom";

import App from "../App";
import Home from '../pages/home/Index'
import Index from '../pages/index/Index'
import Re from '../pages/re/Index'
import Movie from '../pages/movie/Index'
import Ju from '../pages/ju/Index'
// 3.设计并实现路由配置，确保路由正确渲染
export const routes =createBrowserRouter([
    {
        path:'/',
        element:<App></App>,
        children:[
            {
                path:'/home',
                element:<Home></Home>
            },
            {
                path:'/index',
                element:<Index></Index>
            },
            {
                path:'/re',
                element:<Re></Re>
            },
            {
                path:'/movie',
                element:<Movie></Movie>
            },
            {
                path:'/ju',
                element:<Ju></Ju>
            }
        ]
    }
])

export default routes;